/*  1:   */ package org.intellij.plugins.relaxNG.compact.parser;
/*  2:   */ 
/*  3:   */

import com.intellij.lang.ASTNode;
import com.intellij.lang.PsiBuilder;
import com.intellij.lang.PsiBuilder.Marker;
import com.intellij.lang.PsiParser;
import com.intellij.psi.tree.IElementType;
import org.intellij.plugins.relaxNG.compact.RncElementTypes;
import org.jetbrains.annotations.NotNull;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */ 
/* 11:   */ public class RncParser
/* 12:   */   implements PsiParser
/* 13:   */ {
/* 14:   */   @NotNull
/* 15:   */   public ASTNode parse(IElementType paramIElementType, PsiBuilder paramPsiBuilder)
/* 16:   */   {
/* 17:35 */     PsiBuilder.Marker localMarker1 = paramPsiBuilder.mark();
/* 18:36 */     PsiBuilder.Marker localMarker2 = paramPsiBuilder.mark();
/* 19:   */     
/* 20:38 */     new PatternParsing(paramPsiBuilder).parse();
/* 21:40 */     while (!paramPsiBuilder.eof())
/* 22:   */     {
/* 23:41 */       paramPsiBuilder.error("Unexpected token");
/* 24:42 */       paramPsiBuilder.advanceLexer();
/* 25:   */     }
/* 26:45 */     localMarker2.done(RncElementTypes.DOCUMENT);
/* 27:46 */     localMarker1.done(paramIElementType); ASTNode 
/* 28:47 */       tmp75_70 = paramPsiBuilder.getTreeBuilt();
/* 29:47 */     if (tmp75_70 == null) {
/* 30:47 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/plugins/relaxNG/compact/parser/RncParser", "parse" }));
/* 31:   */     }
/* 32:47 */     return tmp75_70;
/* 33:   */   }
/* 34:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.plugins.relaxNG.compact.parser.RncParser

 * JD-Core Version:    0.7.0.1

 */